/************************************************************************
 * @file ConfigDialog.h
 * @author Ian Chen
 * @version 1.0
 *
 * @section LICENSE
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 3 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
 * General Public License for more details at
 * http://www.gnu.org/licenses/lgpl.html
 *
 ************************************************************************/
#ifndef CONFIGDIALOG_H
#define CONFIGDIALOG_H

#include <pluginui/pluginui_global.h>

#include <QDialog>
#include <QIcon>
#include <QString>

class QwwConfigWidget;

namespace antu
{
namespace plugin
{
namespace ui
{
class ConfigPanel;
class ConfigPanelManager;

class PLUGINUISHARED_EXPORT ConfigDialog : public QDialog
{
    Q_OBJECT

public:
    ConfigDialog(ConfigPanelManager* pManager, QWidget *parent = nullptr);
    ~ConfigDialog();

private:
    QwwConfigWidget* m_pConfigWidget;
    ConfigPanelManager* m_pManager;

private slots:
    void confirm();
    void cancel();
    void apply();

public:
    bool isEmpty();

    const static char* CONFIG_DLG;
};
}
}
}

#endif // CONFIGDIALOG_H
